package com.tzpay.tzpay.api.service;

import com.tzpay.tzpay.api.TzBaseResponse;
import com.tzpay.tzpay.api.TzLoginRequest;
import com.tzpay.tzpay.api.TzLoginResponse;
import com.tzpay.tzpay.api.TzOrderCreate;
import com.tzpay.tzpay.api.TzOrderCreateResp;
import com.tzpay.tzpay.api.TzOrderQuery;
import com.tzpay.tzpay.api.TzOrderQueryResponse;
import com.tzpay.tzpay.api.UploadOrderRequest;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * Description:
 * Created:      [16/3/30]
 * Author:       [Yang]
 **/
public interface TzService {

    String TzBaseUrl =  "http://domisoft.oicp.net:9898/";

    @POST("pay-server/rs2/api/loginInApp.json")
    Call<TzLoginResponse> login(@Body TzLoginRequest request);

    @POST("pay-server/rs2/api/upEPayTxData.json")
    Call<TzBaseResponse> upload(@Body UploadOrderRequest request);

    @POST("pay-server/rs2/api/getEPayTxOutput.json")
    Call<TzOrderQueryResponse> query(@Body TzOrderQuery query);

    @POST("pay-server/rs2/api/getPayTxNo.json")
    Call<TzOrderCreateResp> create(@Body TzOrderCreate orderCreate);
}
